#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    SettingsW= new SettingsWindow ();
    SmallB= new SmallBoard ();
    connect(SmallB, SIGNAL(Closed()), this, SLOT(BackFromBoard()));
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::BackFromBoard()
{
    SmallB->hide();
    this->show();
}

void MainWindow::on_AdvertisementLink_clicked()
{
    QDesktopServices::openUrl(QUrl("www.compusciens.org.ve", QUrl::TolerantMode));
}

void MainWindow::on_SettingsButton_clicked()
{
    SettingsW->show();
}

void MainWindow::on_StartButton_clicked()
{
    this->hide();
    SmallB->Initialize();
    SmallB->show();
}
